import request from '@/utils/request';

// 后台管理子系统-数智融合-智库-数智融合-智库标签关联 分页查询
export function pageSdkLmKbFileTag(params, data) {
  return request({
    url: '/web/lm/kb/sdkLmKbFileTag/page',
    method: 'post',
    params,
    data,
    hmacReq: true,
    encryptReq: true,
    decryptRes: true,
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库标签关联 查询详情
export function getSdkLmKbFileTagInfo(id) {
  return request({
    url: '/web/lm/kb/sdkLmKbFileTag/info/' + id,
    method: 'get',
    decryptRes: true,
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库标签关联 新增
export function addSdkLmKbFileTag(data) {
  return request({
    url: '/web/lm/kb/sdkLmKbFileTag/add',
    method: 'post',
    data,
    hmacReq: true,
    encryptReq: true,
    decryptRes: true,
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库标签关联 修改
export function updateSdkLmKbFileTag(data) {
  return request({
    url: '/web/lm/kb/sdkLmKbFileTag/edit',
    method: 'post',
    data,
    hmacReq: true,
    encryptReq: true,
    decryptRes: true,
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库标签关联 删除
export function delSdkLmKbFileTag(ids) {
  return request({
    url: '/web/lm/kb/sdkLmKbFileTag/delete/' + ids,
    method: 'post',
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库标签关联 导入模板
export function tplSdkLmKbFileTag() {
  return request({
    url: '/web/lm/kb/sdkLmKbFileTag/template',
    method: 'post',
    responseType: 'blob',
    filename: `数智融合-智库标签关联模版_${new Date().getTime()}.xlsx`,
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库标签关联 导出
export function exportSdkLmKbFileTag(params, data) {
  return request({
    url: '/web/lm/kb/sdkLmKbFileTag/export',
    method: 'post',
    params,
    data,
    responseType: 'blob',
    filename: `数智融合-智库标签关联_${new Date().getTime()}.xlsx`,
    hmacReq: true,
    encryptReq: true,
  });
}
